package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Reverse_Array {

	public static void main(String[] args) {
		
		int a[];
		System.out.println("Enter the number for array");
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		
		 a=new int[n];
		 
		 System.out.println("Enter the element for array");
		 for(int i=0;i<=a.length-1;i++)
		 {
			 a[i]=sc.nextInt();
		 }
		 
		 System.out.println("Array in Reverse order");
		 for(int i=a.length-1;i>=0;i--)
		 {
			 System.out.println(a[i]);
		 }

	}

}
